#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CTABFOLDERUI_TABFOLDERUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CTABFOLDERUI_TABFOLDERUI_H

#include "ContainerUI.h"
#include "IList.h"

class CControlUI;

class CTabFolderUI: public CContainerUI, public IListOwnerUI
{
public:
	CTabFolderUI(void);
	virtual ~CTabFolderUI(void);
	LPCTSTR GetClass() const;

	void Init();

	bool Add(CControlUI* pControl);

	int GetCurSel() const;
	bool SelectItem(int iIndex);

	void Event(TEventUI& Event);

	void SetPos(RECT rc);
	void DoPaint(HDC hDC, const RECT& rcPaint);

	void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);

protected:
	int m_iCurSel;
	RECT m_rcPage;
	RECT m_rcClient;
	CControlUI* m_pCurPage;
	CStdValArray m_aTabAreas;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CTABFOLDERUI_TABFOLDERUI_H